home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Ss-Sz / Student HomeCard™ 3.0.cpt / Student HomeCard™ 3.0 / For 12" RGB Monitors / Home / background_6552.xml < prev    next >
Extensible Markup Language  |  1992-02-21  |  45KB  |  592 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>6552</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3565.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3283.css" />
  11.     <part>
  12.         <id>78</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <true /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>106</left>
  23.             <top>60</top>
  24.             <right>216</right>
  25.             <bottom>92</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Helvetica</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>13</textHeight>
  40.         <name>Copyright</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>79</id>
  45.         <type>field</type>
  46.         <visible> <false /> </visible>
  47.         <dontWrap> <true /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>12</left>
  55.             <top>183</top>
  56.             <right>232</right>
  57.             <bottom>315</bottom>
  58.         </rect>
  59.         <style>scrolling</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>14</textHeight>
  72.         <name>Apps for Docs</name>
  73.         <script>on mouseUphide meend mouseUp</script>
  74.     </part>
  75.     <part>
  76.         <id>81</id>
  77.         <type>button</type>
  78.         <visible> <true /> </visible>
  79.         <reserved5> 0 </reserved5>
  80.         <reserved4> 0 </reserved4>
  81.         <reserved3> 0 </reserved3>
  82.         <reserved2> 0 </reserved2>
  83.         <reserved1> 0 </reserved1>
  84.         <enabled> <true /> </enabled>
  85.         <rect>
  86.             <left>7</left>
  87.             <top>327</top>
  88.             <right>63</right>
  89.             <bottom>379</bottom>
  90.         </rect>
  91.         <style>shadow</style>
  92.         <showName> <true /> </showName>
  93.         <highlight> <false /> </highlight>
  94.         <autoHighlight> <true /> </autoHighlight>
  95.         <sharedHighlight> <true /> </sharedHighlight>
  96.         <family>0</family>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>7595</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Chicago</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <name>Eject Disk</name>
  104.         <script>on mouseupglobal secondlistput empty into secondlistput SystemFolder() into CurrentSystemrepeat with N = 1 to number of chars of CurrentSystemif char N of CurrentSystem = ":"then exit repeatelse put char N of CurrentSystem after Beetlejuiceend repeatput LocalVolumeList() into ListOfVolumesrepeat with X = 1 to number of lines of ListOfVolumesput item 1 of line x of ListOfVolumes into currentcheckput DiskIsRemovable(currentcheck,"noDialog:errGlobal") into remvstateif remvstate is not "true"thenelseput currentcheck & return after SecondListend ifend repeatif secondlist is not emptythenput SecondList into ListOfVolumeselseanswer "No available disks may be ejected." with "OK"exit mouseupend ifget showList(ListOfVolumes,return,¬¨return & "Select a disk to eject:",false,"Eject,Cancel")if line 1 of it is "Cancel" or line 2 of it is emptythen exit mouseupelseif beetlejuice contains item 1 of line 2 of itthenEjector 1elseEjectDisk item 1 of line 2 of itend ifend ifend mouseup</script>
  105.     </part>
  106.     <part>
  107.         <id>83</id>
  108.         <type>button</type>
  109.         <visible> <true /> </visible>
  110.         <reserved5> 0 </reserved5>
  111.         <reserved4> 0 </reserved4>
  112.         <reserved3> 0 </reserved3>
  113.         <reserved2> 0 </reserved2>
  114.         <reserved1> 0 </reserved1>
  115.         <enabled> <true /> </enabled>
  116.         <rect>
  117.             <left>450</left>
  118.             <top>327</top>
  119.             <right>506</right>
  120.             <bottom>379</bottom>
  121.         </rect>
  122.         <style>shadow</style>
  123.         <showName> <true /> </showName>
  124.         <highlight> <false /> </highlight>
  125.         <autoHighlight> <true /> </autoHighlight>
  126.         <sharedHighlight> <true /> </sharedHighlight>
  127.         <family>0</family>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>23156</icon>
  130.         <textAlign>center</textAlign>
  131.         <font>Chicago</font>
  132.         <textSize>12</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <name>Shutdown</name>
  135.         <script>on mouseUprepeat with x = 1200 down to 1put "Type Command to Cancel " && " Time Remaining Until Shutdown:" && round(x/60)if the commandkey is downthenhide msgexit to hypercardend ifend repeatshutdownend mouseUp</script>
  136.     </part>
  137.     <part>
  138.         <id>84</id>
  139.         <type>button</type>
  140.         <visible> <true /> </visible>
  141.         <reserved5> 0 </reserved5>
  142.         <reserved4> 0 </reserved4>
  143.         <reserved3> 0 </reserved3>
  144.         <reserved2> 0 </reserved2>
  145.         <reserved1> 0 </reserved1>
  146.         <enabled> <true /> </enabled>
  147.         <rect>
  148.             <left>388</left>
  149.             <top>327</top>
  150.             <right>444</right>
  151.             <bottom>379</bottom>
  152.         </rect>
  153.         <style>shadow</style>
  154.         <showName> <true /> </showName>
  155.         <highlight> <false /> </highlight>
  156.         <autoHighlight> <true /> </autoHighlight>
  157.         <sharedHighlight> <true /> </sharedHighlight>
  158.         <family>0</family>
  159.         <titleWidth>0</titleWidth>
  160.         <icon>30919</icon>
  161.         <textAlign>center</textAlign>
  162.         <font>Chicago</font>
  163.         <textSize>12</textSize>
  164.         <textStyle>plain</textStyle>
  165.         <name>Restart</name>
  166.         <script>on mouseUpglobal SuperUglobal dResultput line 1 of cd field "Password Field" of cd id 6381 into tempestif SuperU is truethendorestartend ifput return into CR-- --------------------------------- Items in Dialog: "SHCPassword"-- --------------------------------- 1 ‚óä Button "OK"-- 2 ‚óä Button "Cancel"-- 3 ‚óä Static Text ""-- 4 ‚óä Static Text "Enter Admin Password:"-- 5 ‚óä Protected Editable Text ""-- 6 ‚óä Picture "129"-- -------------------------------put Dialoger("SHCPassword"& return & "on PassWordHit"¬¨, "5‚óäprotected"¬¨) into dResultif line 2 of dResult ‚↠""thenexit mouseUpelsedorestartend ifend mouseUp</script>
  167.     </part>
  168.     <part>
  169.         <id>85</id>
  170.         <type>button</type>
  171.         <visible> <true /> </visible>
  172.         <reserved5> 0 </reserved5>
  173.         <reserved4> 0 </reserved4>
  174.         <reserved3> 0 </reserved3>
  175.         <reserved2> 0 </reserved2>
  176.         <reserved1> 0 </reserved1>
  177.         <enabled> <true /> </enabled>
  178.         <rect>
  179.             <left>326</left>
  180.             <top>327</top>
  181.             <right>382</right>
  182.             <bottom>379</bottom>
  183.         </rect>
  184.         <style>shadow</style>
  185.         <showName> <true /> </showName>
  186.         <highlight> <false /> </highlight>
  187.         <autoHighlight> <true /> </autoHighlight>
  188.         <sharedHighlight> <true /> </sharedHighlight>
  189.         <family>0</family>
  190.         <titleWidth>0</titleWidth>
  191.         <icon>128</icon>
  192.         <textAlign>center</textAlign>
  193.         <font>Chicago</font>
  194.         <textSize>12</textSize>
  195.         <textStyle>plain</textStyle>
  196.         <name>Quit</name>
  197.         <script>on mouseUpglobal SuperUglobal dResultput line 1 of cd field "Password Field" of cd id 6381 into tempestif SuperU is truethenenable menuitem 14 of menu "File"domenu "Quit HyperCard"end ifput return into CR-- --------------------------------- Items in Dialog: "SHCPassword"-- --------------------------------- 1 ‚óä Button "OK"-- 2 ‚óä Button "Cancel"-- 3 ‚óä Static Text ""-- 4 ‚óä Static Text "Enter Admin Password:"-- 5 ‚óä Protected Editable Text ""-- 6 ‚óä Picture "129"-- -------------------------------put Dialoger("SHCPassword"& return & "on PassWordHit"¬¨, "5‚óäprotected"¬¨) into dResultif line 2 of dResult ‚↠""thenexit mouseUpelseput true into SuperUenable menuitem 14 of menu "File"domenu "Quit HyperCard"end ifend mouseUp</script>
  198.     </part>
  199.     <part>
  200.         <id>86</id>
  201.         <type>button</type>
  202.         <visible> <true /> </visible>
  203.         <reserved5> 0 </reserved5>
  204.         <reserved4> 0 </reserved4>
  205.         <reserved3> 0 </reserved3>
  206.         <reserved2> 0 </reserved2>
  207.         <reserved1> 0 </reserved1>
  208.         <enabled> <true /> </enabled>
  209.         <rect>
  210.             <left>140</left>
  211.             <top>331</top>
  212.             <right>254</right>
  213.             <bottom>375</bottom>
  214.         </rect>
  215.         <style>transparent</style>
  216.         <showName> <false /> </showName>
  217.         <highlight> <false /> </highlight>
  218.         <autoHighlight> <false /> </autoHighlight>
  219.         <sharedHighlight> <true /> </sharedHighlight>
  220.         <family>0</family>
  221.         <titleWidth>0</titleWidth>
  222.         <icon>0</icon>
  223.         <textAlign>center</textAlign>
  224.         <font>Chicago</font>
  225.         <textSize>12</textSize>
  226.         <textStyle>plain</textStyle>
  227.         <name></name>
  228.         <script>on mousestilldownget the mousehput the rect of me into MyRectput item 2 of MyRect into MyHeightput MyHeight + 17 into MyHeightput item 1 of MyRect into MySlideif it ‚â• MySlide+11 and it ‚⧠MySlide+17thenset the loc of bg button id 87 to MySlide+11,MyHeightput 0 into VolumeValueelse if it ‚â• MySlide+18 and it ‚⧠MySlide+30thenset the loc of bg button id 87 to MySlide+24,MyHeightput 1 into VolumeValueelse if it ‚â• MySlide+31 and it ‚⧠MySlide+43thenset the loc of bg button id 87 to MySlide+37,MyHeightput 2 into VolumeValueelse if it ‚â• MySlide+44 and it ‚⧠MySlide+56thenset the loc of bg button id 87 to MySlide+50,MyHeightput 3 into VolumeValueelse if it ‚â• MySlide+57 and it ‚⧠MySlide+69thenset the loc of bg button id 87 to MySlide+63,MyHeightput 4 into VolumeValueelse if it ‚â• MySlide+70 and it ‚⧠MySlide+82thenset the loc of bg button id 87 to MySlide+76,MyHeightput 5 into VolumeValueelse if it ‚â• MySlide+83 and it ‚⧠MySlide+95thenset the loc of bg button id 87 to MySlide+89,MyHeightput 6 into VolumeValueelse if it ‚â• MySlide+96 and it ‚⧠MySlide+102thenset the loc of bg button id 87 to MySlide+102,MyHeightput 7 into VolumeValueelse if it < MySlide+11thenset the loc of bg button id 87 to MySlide+11,MyHeightput 0 into VolumeValueelseset the loc of bg button id 87 to MySlide+102,MyHeightput 7 into VolumeValueend ifSetVolume "¬©1988SDrazga",VolumeValueend mousestilldownon mouseupbeep 2end mouseup</script>
  229.     </part>
  230.     <part>
  231.         <id>87</id>
  232.         <type>button</type>
  233.         <visible> <true /> </visible>
  234.         <reserved5> 0 </reserved5>
  235.         <reserved4> 0 </reserved4>
  236.         <reserved3> 0 </reserved3>
  237.         <reserved2> 0 </reserved2>
  238.         <reserved1> 0 </reserved1>
  239.         <enabled> <true /> </enabled>
  240.         <rect>
  241.             <left>234</left>
  242.             <top>337</top>
  243.             <right>251</right>
  244.             <bottom>360</bottom>
  245.         </rect>
  246.         <style>transparent</style>
  247.         <showName> <false /> </showName>
  248.         <highlight> <false /> </highlight>
  249.         <autoHighlight> <false /> </autoHighlight>
  250.         <sharedHighlight> <true /> </sharedHighlight>
  251.         <family>0</family>
  252.         <titleWidth>0</titleWidth>
  253.         <icon>4125</icon>
  254.         <textAlign>center</textAlign>
  255.         <font>Chicago</font>
  256.         <textSize>12</textSize>
  257.         <textStyle>plain</textStyle>
  258.         <name>Slider</name>
  259.         <script>on mousestilldownget the mousehput the rect of bg button id 86 into MyRectput item 2 of MyRect into MyHeightput MyHeight + 17 into MyHeightput item 1 of MyRect into MySlideif it ‚â• MySlide+11 and it ‚⧠MySlide+17thenset the loc of me to MySlide+11,MyHeightput 0 into VolumeValueelse if it ‚â• MySlide+18 and it ‚⧠MySlide+30thenset the loc of me to MySlide+24,MyHeightput 1 into VolumeValueelse if it ‚â• MySlide+31 and it ‚⧠MySlide+43thenset the loc of me to MySlide+37,MyHeightput 2 into VolumeValueelse if it ‚â• MySlide+44 and it ‚⧠MySlide+56thenset the loc of me to MySlide+50,MyHeightput 3 into VolumeValueelse if it ‚â• MySlide+57 and it ‚⧠MySlide+69thenset the loc of me to MySlide+63,MyHeightput 4 into VolumeValueelse if it ‚â• MySlide+70 and it ‚⧠MySlide+82thenset the loc of me to MySlide+76,MyHeightput 5 into VolumeValueelse if it ‚â• MySlide+83 and it ‚⧠MySlide+95thenset the loc of me to MySlide+89,MyHeightput 6 into VolumeValueelse if it ‚â• MySlide+96 and it ‚⧠MySlide+102thenset the loc of me to MySlide+102,MyHeightput 7 into VolumeValueelse if it < MySlide+11thenset the loc of me to MySlide+11,MyHeightput 0 into VolumeValueelseset the loc of me to MySlide+102,MyHeightput 7 into VolumeValueend ifSetVolume "¬©1988SDrazga",VolumeValueend mousestilldownon mouseupbeep 2end mouseup</script>
  260.     </part>
  261.     <part>
  262.         <id>88</id>
  263.         <type>field</type>
  264.         <visible> <false /> </visible>
  265.         <dontWrap> <false /> </dontWrap>
  266.         <dontSearch> <true /> </dontSearch>
  267.         <sharedText> <true /> </sharedText>
  268.         <fixedLineHeight> <true /> </fixedLineHeight>
  269.         <autoTab> <false /> </autoTab>
  270.         <lockText> <true /> </lockText>
  271.         <rect>
  272.             <left>35</left>
  273.             <top>26</top>
  274.             <right>231</right>
  275.             <bottom>52</bottom>
  276.         </rect>
  277.         <style>transparent</style>
  278.         <autoSelect> <false /> </autoSelect>
  279.         <showLines> <false /> </showLines>
  280.         <wideMargins> <false /> </wideMargins>
  281.         <multipleLines> <false /> </multipleLines>
  282.         <reservedFamily> 0 </reservedFamily>
  283.         <titleWidth>0</titleWidth>
  284.         <icon>0</icon>
  285.         <textAlign>left</textAlign>
  286.         <font>Helvetica</font>
  287.         <textSize>18</textSize>
  288.         <textStyle>plain</textStyle>
  289.         <textHeight>24</textHeight>
  290.         <name>Title</name>
  291.         <script>on mouseuphide meend mouseup</script>
  292.     </part>
  293.     <part>
  294.         <id>89</id>
  295.         <type>field</type>
  296.         <visible> <true /> </visible>
  297.         <dontWrap> <false /> </dontWrap>
  298.         <dontSearch> <false /> </dontSearch>
  299.         <sharedText> <true /> </sharedText>
  300.         <fixedLineHeight> <true /> </fixedLineHeight>
  301.         <autoTab> <false /> </autoTab>
  302.         <lockText> <true /> </lockText>
  303.         <rect>
  304.             <left>302</left>
  305.             <top>65</top>
  306.             <right>422</right>
  307.             <bottom>91</bottom>
  308.         </rect>
  309.         <style>transparent</style>
  310.         <autoSelect> <false /> </autoSelect>
  311.         <showLines> <false /> </showLines>
  312.         <wideMargins> <false /> </wideMargins>
  313.         <multipleLines> <false /> </multipleLines>
  314.         <reservedFamily> 0 </reservedFamily>
  315.         <titleWidth>0</titleWidth>
  316.         <icon>0</icon>
  317.         <textAlign>center</textAlign>
  318.         <font>Helvetica</font>
  319.         <textSize>18</textSize>
  320.         <textStyle>plain</textStyle>
  321.         <textHeight>24</textHeight>
  322.         <name>HCContTimeDisplayHC</name>
  323.         <script>function timeData-- this handler stores the time display data specified by the-- user. DO NOT MOVE THE POSITION OF THIS HANDLER!-- item 1: short,long time 2: card,bkgnd fieldreturn "the Short time,bkgnd"end timeDataon newfieldput word 1 of the long name of me into fieldTypeif fieldType is "Bkgnd" then set sharedText of me to trueput item 1 of timeData() into timeFormataddCardScript timeFormat,fieldTypeupdateTimeData timeFormat,fieldTypeend newfieldon deleteFieldremoveScriptend deleteFieldon addCardScript timeFormat,fieldTypeput "on idle" into theHandlerget script of fieldTypeif theHandler is in it thenif (fieldType && "field id" && id of me) is not in it thenput scriptBody(timeFormat,fieldType) & return after char ¬¨(offSet(theHandler,it) + length(theHandler)) of itset script of fieldType to itelseremoveScriptaddCardScript timeFormat,fieldTypeend ifelseif it ‚↠empty thenif last char of it = return then put return after itelse put return & return after itend ifput "on idle" & return & scriptBody(timeFormat,fieldType) & ¬¨return & "pass idle" & return & "end idle" after itset script of fieldType to itend ifend addCardScripton removeScriptput item 1 of timeData() into timeFormatput item 2 of timeData() into fieldTypeput scriptBody(timeFormat,fieldType) into scriptChunkget script of fieldTypeif line 1 of scriptChunk is in it thenput offset(line 1 of scriptChunk,it) into startBlockput startBlock + length(scriptChunk) + 2 into endBlockdelete char startBlock to endBlock of itset script of fieldType to itend ifend removeScriptfunction scriptBody timeFormat,fieldTypereturn "if (there is a" && fieldType && "field id" && id of me & ")" && ¬¨"and (the selectedField is empty)" & return & "then put" && timeFormat && ¬¨"into" && fieldType && "field id" && id of meend scriptBodyon mouseUp-- ask user for time formatanswer "Set time format to:" with "Cancel" or "Long" or "Short" -- ‚àÜif (the result ‚↠empty) or (it = "Cancel") then exit mouseUp -- ‚àÜput "the" && it && "time" into timeFormatput item 2 of timeData() into fieldTypeupdateTimeData timeFormat,fieldTypeaddCardScript timeFormat,fieldTypeend mouseUpon updateTimeData timeFormat,fieldType-- write time data back to the handler in this scriptget script of meput quote & timeFormat & "," & fieldType & quote into newDataput newData into char offset(quote,it) to (offSet("end",it) - 2) of itset script of me to itend updateTimeData</script>
  324.     </part>
  325.     <part>
  326.         <id>91</id>
  327.         <type>button</type>
  328.         <visible> <true /> </visible>
  329.         <reserved5> 0 </reserved5>
  330.         <reserved4> 0 </reserved4>
  331.         <reserved3> 0 </reserved3>
  332.         <reserved2> 0 </reserved2>
  333.         <reserved1> 0 </reserved1>
  334.         <enabled> <true /> </enabled>
  335.         <rect>
  336.             <left>463</left>
  337.             <top>63</top>
  338.             <right>499</right>
  339.             <bottom>92</bottom>
  340.         </rect>
  341.         <style>transparent</style>
  342.         <showName> <false /> </showName>
  343.         <highlight> <false /> </highlight>
  344.         <autoHighlight> <true /> </autoHighlight>
  345.         <sharedHighlight> <true /> </sharedHighlight>
  346.         <family>0</family>
  347.         <titleWidth>0</titleWidth>
  348.         <icon>2001</icon>
  349.         <textAlign>center</textAlign>
  350.         <font>Chicago</font>
  351.         <textSize>12</textSize>
  352.         <textStyle>plain</textStyle>
  353.         <name>Next Card</name>
  354.         <script>on mouseUpvisual effect wipe leftgo next cd of this bgend mouseUp</script>
  355.     </part>
  356.     <part>
  357.         <id>92</id>
  358.         <type>button</type>
  359.         <visible> <true /> </visible>
  360.         <reserved5> 0 </reserved5>
  361.         <reserved4> 0 </reserved4>
  362.         <reserved3> 0 </reserved3>
  363.         <reserved2> 0 </reserved2>
  364.         <reserved1> 0 </reserved1>
  365.         <enabled> <true /> </enabled>
  366.         <rect>
  367.             <left>424</left>
  368.             <top>63</top>
  369.             <right>460</right>
  370.             <bottom>92</bottom>
  371.         </rect>
  372.         <style>transparent</style>
  373.         <showName> <false /> </showName>
  374.         <highlight> <false /> </highlight>
  375.         <autoHighlight> <true /> </autoHighlight>
  376.         <sharedHighlight> <true /> </sharedHighlight>
  377.         <family>0</family>
  378.         <titleWidth>0</titleWidth>
  379.         <icon>28769</icon>
  380.         <textAlign>center</textAlign>
  381.         <font>Chicago</font>
  382.         <textSize>12</textSize>
  383.         <textStyle>plain</textStyle>
  384.         <name>Next Card</name>
  385.         <script>on mouseUpvisual effect wipe rightgo prev cd of this bgend mouseUp</script>
  386.     </part>
  387.     <part>
  388.         <id>96</id>
  389.         <type>field</type>
  390.         <visible> <false /> </visible>
  391.         <dontWrap> <false /> </dontWrap>
  392.         <dontSearch> <false /> </dontSearch>
  393.         <sharedText> <false /> </sharedText>
  394.         <fixedLineHeight> <false /> </fixedLineHeight>
  395.         <autoTab> <false /> </autoTab>
  396.         <lockText> <false /> </lockText>
  397.         <rect>
  398.             <left>308</left>
  399.             <top>32</top>
  400.             <right>498</right>
  401.             <bottom>56</bottom>
  402.         </rect>
  403.         <style>transparent</style>
  404.         <autoSelect> <false /> </autoSelect>
  405.         <showLines> <false /> </showLines>
  406.         <wideMargins> <false /> </wideMargins>
  407.         <multipleLines> <false /> </multipleLines>
  408.         <reservedFamily> 0 </reservedFamily>
  409.         <titleWidth>0</titleWidth>
  410.         <icon>0</icon>
  411.         <textAlign>left</textAlign>
  412.         <font>Geneva</font>
  413.         <textSize>12</textSize>
  414.         <textStyle>plain</textStyle>
  415.         <textHeight>16</textHeight>
  416.         <name>Section</name>
  417.         <script></script>
  418.     </part>
  419.     <part>
  420.         <id>95</id>
  421.         <type>button</type>
  422.         <visible> <true /> </visible>
  423.         <reserved5> 0 </reserved5>
  424.         <reserved4> 0 </reserved4>
  425.         <reserved3> 0 </reserved3>
  426.         <reserved2> 0 </reserved2>
  427.         <reserved1> 0 </reserved1>
  428.         <enabled> <true /> </enabled>
  429.         <rect>
  430.             <left>307</left>
  431.             <top>33</top>
  432.             <right>477</right>
  433.             <bottom>57</bottom>
  434.         </rect>
  435.         <style>transparent</style>
  436.         <showName> <true /> </showName>
  437.         <highlight> <false /> </highlight>
  438.         <autoHighlight> <false /> </autoHighlight>
  439.         <sharedHighlight> <false /> </sharedHighlight>
  440.         <family>0</family>
  441.         <titleWidth>0</titleWidth>
  442.         <icon>0</icon>
  443.         <textAlign>center</textAlign>
  444.         <font>Chicago</font>
  445.         <textSize>12</textSize>
  446.         <textStyle>plain</textStyle>
  447.         <name>Main Card  (1 of 1)</name>
  448.         <script>on mousedownglobal AllCards,SuperUif SuperU is truethen MakePopUpListput line 1 of bg field id 96 into CheckedItemrepeat with x = 1 to number of items of AllCardsif item x of AllCards = CheckedItemthen put x into CheckedItemend repeatput (item 1 of the rect of bg button id 95) +1 into horizput (item 2 of the rect of bg button id 95) +1 into vertget wavesHPopup(CheckedItem,0,AllCards, vert, ¬¨horiz,"noDialog")if word 1 of item 1 of it = "Edit" and SuperU is truethenif bg field id 96 contains "Main Card"thenanswer "You cannot change the name of the" & return & "Main Card." with "Ok"exit mousedownelseask "Enter the new name for this card:" with line 1 of bg field id 96if it is "Cancel" or it is emptythenexit mousedownelseput it into bg field id 96send opencard to this cdMakePopUpListanswer "WARNING: Buttons you created for this card may no longer be named appropriately." with "OK"end ifend ifelsefind (item 1 of line 1 of it) in bg field id 96click at 0,0end ifend mousedown</script>
  449.     </part>
  450.     <part>
  451.         <id>94</id>
  452.         <type>button</type>
  453.         <visible> <true /> </visible>
  454.         <reserved5> 0 </reserved5>
  455.         <reserved4> 0 </reserved4>
  456.         <reserved3> 0 </reserved3>
  457.         <reserved2> 0 </reserved2>
  458.         <reserved1> 0 </reserved1>
  459.         <enabled> <true /> </enabled>
  460.         <rect>
  461.             <left>476</left>
  462.             <top>33</top>
  463.             <right>501</right>
  464.             <bottom>57</bottom>
  465.         </rect>
  466.         <style>transparent</style>
  467.         <showName> <false /> </showName>
  468.         <highlight> <false /> </highlight>
  469.         <autoHighlight> <false /> </autoHighlight>
  470.         <sharedHighlight> <false /> </sharedHighlight>
  471.         <family>0</family>
  472.         <titleWidth>0</titleWidth>
  473.         <icon>0</icon>
  474.         <textAlign>center</textAlign>
  475.         <font>Chicago</font>
  476.         <textSize>12</textSize>
  477.         <textStyle>plain</textStyle>
  478.         <name></name>
  479.         <script>on mousedownglobal AllCards,SuperUif SuperU is truethen MakePopUpListput line 1 of bg field id 96 into CheckedItemrepeat with x = 1 to number of items of AllCardsif item x of AllCards = CheckedItemthen put x into CheckedItemend repeatput (item 1 of the rect of bg button id 95) +1 into horizput (item 2 of the rect of bg button id 95) +1 into vertget wavesHPopup(CheckedItem,0,AllCards, vert, ¬¨horiz,"noDialog")if word 1 of item 1 of it = "Edit" and SuperU is truethenif bg field id 96 contains "Main Card"thenanswer "You cannot change the name of the" & return & "Main Card." with "Ok"exit mousedownelseask "Enter the new name for this card:" with line 1 of bg field id 96if it is "Cancel" or it is emptythenexit mousedownelseput it into bg field id 96send opencard to this cdMakePopUpListanswer "WARNING: Buttons you created for this card may no longer be named appropriately." with "OK"end ifend ifelsefind (item 1 of line 1 of it) in bg field id 96click at 0,0end ifend mousedown</script>
  480.     </part>
  481.     <part>
  482.         <id>90</id>
  483.         <type>button</type>
  484.         <visible> <false /> </visible>
  485.         <reserved5> 0 </reserved5>
  486.         <reserved4> 0 </reserved4>
  487.         <reserved3> 0 </reserved3>
  488.         <reserved2> 0 </reserved2>
  489.         <reserved1> 0 </reserved1>
  490.         <enabled> <true /> </enabled>
  491.         <rect>
  492.             <left>300</left>
  493.             <top>1</top>
  494.             <right>509</right>
  495.             <bottom>94</bottom>
  496.         </rect>
  497.         <style>shadow</style>
  498.         <showName> <true /> </showName>
  499.         <highlight> <false /> </highlight>
  500.         <autoHighlight> <true /> </autoHighlight>
  501.         <sharedHighlight> <true /> </sharedHighlight>
  502.         <family>0</family>
  503.         <titleWidth>0</titleWidth>
  504.         <icon>0</icon>
  505.         <textAlign>center</textAlign>
  506.         <font>Courier</font>
  507.         <textSize>24</textSize>
  508.         <textStyle>bold</textStyle>
  509.         <name>DONE</name>
  510.         <script>on mouseUpglobal fullPathglobal TheName,buttonScriptpush cardset script of button TheName to buttonScriptset cursor to busyset lockscreen to truego card "Applications"go card "Documents"go card "Stacks"set lockmessages to truepop cardhide mehide msgset lockmessages to falseset lockscreen to falseend mouseUp</script>
  511.     </part>
  512.     <part>
  513.         <id>97</id>
  514.         <type>button</type>
  515.         <visible> <true /> </visible>
  516.         <reserved5> 0 </reserved5>
  517.         <reserved4> 0 </reserved4>
  518.         <reserved3> 0 </reserved3>
  519.         <reserved2> 0 </reserved2>
  520.         <reserved1> 0 </reserved1>
  521.         <enabled> <true /> </enabled>
  522.         <rect>
  523.             <left>243</left>
  524.             <top>2</top>
  525.             <right>294</right>
  526.             <bottom>77</bottom>
  527.         </rect>
  528.         <style>transparent</style>
  529.         <showName> <false /> </showName>
  530.         <highlight> <false /> </highlight>
  531.         <autoHighlight> <true /> </autoHighlight>
  532.         <sharedHighlight> <false /> </sharedHighlight>
  533.         <family>0</family>
  534.         <titleWidth>0</titleWidth>
  535.         <icon>0</icon>
  536.         <textAlign>center</textAlign>
  537.         <font>Chicago</font>
  538.         <textSize>12</textSize>
  539.         <textStyle>plain</textStyle>
  540.         <name>Main Card</name>
  541.         <script>on mouseUpif the short id of this cd = 6381thenanswer "This is the Main Card." with "Ok"elsevisual effect dissolve fastgo cd id 6381end ifend mouseUp</script>
  542.     </part>
  543.     <part>
  544.         <id>98</id>
  545.         <type>button</type>
  546.         <visible> <true /> </visible>
  547.         <reserved5> 0 </reserved5>
  548.         <reserved4> 0 </reserved4>
  549.         <reserved3> 0 </reserved3>
  550.         <reserved2> 0 </reserved2>
  551.         <reserved1> 0 </reserved1>
  552.         <enabled> <true /> </enabled>
  553.         <rect>
  554.             <left>70</left>
  555.             <top>327</top>
  556.             <right>126</right>
  557.             <bottom>379</bottom>
  558.         </rect>
  559.         <style>shadow</style>
  560.         <showName> <true /> </showName>
  561.         <highlight> <false /> </highlight>
  562.         <autoHighlight> <true /> </autoHighlight>
  563.         <sharedHighlight> <false /> </sharedHighlight>
  564.         <family>0</family>
  565.         <titleWidth>0</titleWidth>
  566.         <icon>129</icon>
  567.         <textAlign>center</textAlign>
  568.         <font>Geneva</font>
  569.         <textSize>14</textSize>
  570.         <textStyle>plain</textStyle>
  571.         <name>Color</name>
  572.         <script>--Sample script for invoking "COLOR"--Created on Thursday, February 13, 1992on mouseUpglobal dResult,IsColor,CDepthNum,CanColorput return into CR-- --------------------------------- Items in Dialog: "COLOR"-- --------------------------------- 1 ‚óä Button "OK"-- 2 ‚óä Button "Cancel"-- 3 ‚óä Picture "130"-- 4 ‚óä Styled Static Text "Change Color Depth:"-- 5 ‚óä List ""-- 6 ‚óä Radio Button "Grays"-- 7 ‚óä Radio Button "Colors"-- -------------------------------put GetMode() into Cstatusif item 1 of Cstatus = "C"then put true into CurrentBorCelse put false into CurrentBorCput item 2 of CStatus into CDepthput item 3 of CStatus into ScreenNumif item 4 of Cstatus = "C"then put true into CanColorelse put false into CanColorput "1,2,4,8,32" into ColorDepthsif item 5 of CStatus = 1then put 1 into MaxDepthif item 5 of CStatus = 2then put 2 into MaxDepthif item 5 of CStatus = 4then put 3 into MaxDepthif item 5 of CStatus = 8then put 4 into MaxDepthif item 5 of CStatus = 32then put 5 into MaxDepthif item 2 of CStatus = 1then put 1 into CDepthNumif item 2 of CStatus = 2then put 2 into CDepthNumif item 2 of CStatus = 4then put 3 into CDepthNumif item 2 of CStatus = 8then put 4 into CDepthNumif item 2 of CStatus = 32then put 5 into CDepthNumput "B&W" & return & "4 Shades" & return & "16 Shades"¬¨& return & "256 Shades" & return & "Millions" into List1put line 1 to MaxDepth of List1 into List1put Dialoger("COLOR" & return & "On ColorHit"¬¨, "4‚óäStyledText Chicago,12,."¬¨, "7‚óä" & CurrentBorC¬¨, "6‚óä" & not CurrentBorC¬¨, "5‚óäuserList Geneva,9" & CR & List1¬¨) into dResultif word 1 of dResult is "Error:" then answer dResultelse put dResult into cd field 1if line 5 of dresult is empty or line 2 of dresult is not emptythen exit mouseupput item (Line 5 of dresult) of ColorDepths into Depthif line 6 of dresult contains "False"then put "C" into Modeelse put "B" into ModeSetMode Mode,Depthend mouseUpglobal SavedVideoanswer "Video mode :" with "Cancel" or "Black" or "Color"if it is "Cancel" then exit mouseUpput it into Modeask "Video depth : (1.." & item 5 of SavedVideo & ")" with 1if it is empty then exit mouseUpput it into Depthask "Screen number : (nothing,*,1.." & number of lines of SavedVideo¬¨& ")"if it ‚↠emptythen SetMode Mode,Depth,itelse SetMode Mode,Depth</script>
  573.     </part>
  574.     <content>
  575.         <layer>background</layer>
  576.         <id>78</id>
  577.         <text>¬Æ 1992 ATG, Inc.All Rights Reserved</text>
  578.     </content>
  579.     <content>
  580.         <layer>background</layer>
  581.         <id>89</id>
  582.         <text>5:07 PM</text>
  583.     </content>
  584.     <content>
  585.         <layer>background</layer>
  586.         <id>88</id>
  587.         <text>Student HomeCard 3.0</text>
  588.     </content>
  589.     <name>Home Cards</name>
  590.     <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûScript from stack: Home (Browser)THE MESSAGE HANDLERS IN THIS SCRIPT:deleteHCLine,selectHCLine,goHCStack,newLink,updateHCPathsTHE FUNCTION HANDLERS IN THIS SCRIPT:selectHCFile,lastHCItem,getHCPathName,stringIsInContainer,tabToCommacommaToTab‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû-----  Open/Resume Scripts  ----------------------------------------on openStackglobal WhichHomeCard,SuperStudentChooser,SuperStudentControlglobal AllCardsshow menubar -- needed for the "Administration" menuif WhichHomeCard is not empty then go to card WhichHomeCard-- remove any similar menusif there is a menu "Administration" then delete menu "Administration" -- ‚àÜif the visible of bg button id 90 is truethen hide bg button id 90hide msgif the short name of me is "Home"thencreateMenuAdministrationMakePopUpListLockSHCput cd field id 273 of cd id 6381 into SuperStudentChooserput cd field id 274 of cd id 6381 into SuperStudentControlend ifpass openStack -- so others can use itend openStackon closestackglobal SuperUif "Administration" is in the menus and (the short name of this stack is "Home")then delete menu "Administration" -- ‚àÜenable menuitem "Print Report..." of menu "File"enable menuitem "Quit Hypercard" of menu "File"enable menu "Go"enable menu "Edit"pass closeStack -- so others can use itend closestackon openBackgroundglobal AllCards,SuperU-- Requires handlers: createTheMenus,updateHomeMenu-- make the "Administration" menu if necessaryif the visible of bg button id 90 is truethen hide bg button id 90MakePopUpListif SuperU is not truethenChangeApplecreateTheMenusLockSHCend ifpass openBackground -- so others can use itend openBackgroundon closeBackground-- Requires handler: updateHomeMenuglobal WhichHomeCardput short name of this card into WhichHomeCardif the visible of bg button id 90 is truethenset lockmessages to truesend mouseup to bg button id 90set lockmessages to falseend ifpass closeBackground -- so others can use itend closeBackgroundon suspendStackglobal SuperUif the visible of bg button id 90 is truethenset lockmessages to truesend mouseup to bg button id 90set lockmessages to falseend if-- ‚àÜ remove our custom menu when exitingif "Administration" is in the menus and (the short name of this stack is "Home")then delete menu "Administration" -- ‚àÜput (cd fld "User Name" of cd "User Preferences") into UserNameenable menuitem "Print Report..." of menu "File"enable menuitem "Quit Hypercard" of menu "File"enable menu "Go"enable menu "Edit"pass suspendStack -- so others can use itend suspendStackon resumeStackglobal AllCards-- Requires handlers: createTheMenus,updateHomeMenu-- make the "Administration" menu if necessarycreateTheMenus trueif the visible of bg button id 90 is truethen hide bg button id 90-- update Administration menu for this bkgndMakePopUpListLockSHCpass resumeStack -- so others can use itend resumeStackon opencardset the name of bg button id 95 to line 1 of bg field id 96 && " " & "(" &¬¨number of this cd && "of" && number of cards of this bg & ")"pass opencard --so others can use itend opencard-----  Delete Line Script  -----------------------------------------on deleteHCLine theField-- Requires handlers: disallowInterruption,selectHCLine-- Requires handlers: allowInterruption,trackFieldSelectionif bg fld theField is empty then exit deleteHCLinedisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of bg field theFieldthen set cursor to handelse set cursor to 3end repeatallowInterruptionif the clickLoc is not within rect of bg field theFieldthen exit deleteHCLineput the clickLine into lineClickedput word 2 of lineClicked into theLineput value(lineClicked) into theLineDataif theLineData = empty then exit deleteHCLine-- confirm deletion of the selected itemif the optionKey is not down thenanswer "Delete ‚Äú" & theLineData & "‚Äù from this list?" with "Cancel" or "OK" -- ‚àÜif it ‚↠"OK" thenselect emptyexit deleteHCLineend ifend ifdelete lineClicked -- delete it-- ‚àÜ "Apps for Docs" is a hidden fieldif theField is "Documents"then delete line theLine of bg field "Apps For Docs"end deleteHCLine-----  More 'O Mine JD ¬Æ Apple  --------------------------------------on CreateNewCardglobal AllCards,thename,buttonScriptdisallowinterruptionask "What would you like to name the new card?"if it is empty or it is "Cancel"then exit CreateNewCardput it into NewCardNameanswer "Do you wish to create a button to the new card on this card? (access to the card will already be provided by the pop-up menu)" with "Cancel" or "Yes" or "No"if it is "Cancel"thenexit CreateNewCardelse if it is "Yes"thenpush cardhide msgdoMenu "New Button"hide button "New Button"show button "New Button"set style of button "New Button" to transparentset icon of button "New Button" to 24241choose button toolput ((the number of chars of NewCardName) *5) into thewidthselect button "New Button"set rect of button "New Button"  to 122,207,(122 + thewidth + 5),255set autohilite of button "New Button"  to trueset name of button "New Button" to NewCardNamechoose the browse toolshow bg button id 90put "Drag the card button where you want it and click the DONE Button"-- now construct temporary script for the new buttonput "on mouseStilldown" & return into buttonScriptput "put the name of me into tempname" & return after buttonscriptput "dragon " & tempname & return after buttonScriptput "end mouseStilldown" & return after buttonScriptset script of button NewCardName to buttonScript-- now construct script for the new buttonput "on mouseUp" & return into buttonScriptput "visual effect zoom open" & return after buttonScriptput "go card" && quote & NewCardName & quote & return after buttonScriptput "end mouseUp" & return after buttonScriptput NewCardName into TheNameset lockscreen to truedomenu "New Card"set the name of this card to NewCardNameput field "Copyright" of cd "Home" into bg field "Copyright"put field "Title" of cd "Home" into bg field "Title"put NewCardName into bg field id 96set the name of bg button id 95 to line 1 of bg field id 96pop cardMakePopUpListset lockscreen to falseexit CreateNewCardelse if it is "No"thendomenu "New Card"put field "Copyright" of cd "Home" into bg field "Copyright"put field "Title" of cd "Home" into bg field "Title"put NewCardName into bg field id 96set the name of bg button id 95 to line 1 of bg field id 96MakePopUpListset lockscreen to falseend ifend CreateNewCard-----  Miscellaneous Scripts  --------------------------------------on selectHCLine theLine,theFieldselect char 1 to ((number of chars in (line theLine of the target)) + 1) of (line theLine to (theLine + 1) of the target)end selectHCLineon goHCStack whatStack-- open in new window if "Open stack in new window" check box is checkedif last character of whatStack = returnthen delete last character of whatStackset cursor to watchif hilite of bg btn id 48 then go stack whatStack in new windowelse go stack whatStackif the result ‚↠empty and the result ‚↠"Cancel"then answer "Couldn't open" && "‚Äú" & whatStack & "‚Äù" -- ‚àÜ there's a problemend goHCStackfunction selectHCFile prompt,filter-- displays dialog for selection of a particular fileTypeif filter is not empty then answer file prompt of type filterelse answer file promptif (it is empty) or (the result = "Cancel")then exit to HyperCardreturn it -- otherwise return the selected file pathend selectHCFilefunction lastHCItem delim,theText-- returns the portion of <theText> that follows the last <delim>if delim is in theText thenput lastHCItem(delim,char offset(delim,theText) + 1 to ¬¨length(theText) of theText) into theTextend ifreturn theTextend lastHCItemfunction getHCPathName longName-- Requires function handler: lastHCItem-- return the path to the fileput lastHCItem(":",longName) into fileNamereturn char 1 to (length(longName) - length(fileName)) of longNameend getHCPathNameon updateHCPaths fileType,thePath-- Requires function handler: stringIsInContainer-- update the appropriate path card for the newly created buttonglobal Stacks,Applications,Documents-- put "s" after fileType  -- ‚àÜ so it will match card & global namedo "get" && fileType --  put the appropriate global into "it"--  exit this handler if the global already contains the pathif stringIsInContainer(thePath,it) then exit updateHCPathslock screenset cursor to watchset lockmessages to true -- avoid open messagesset lockrecent to true -- don't make any card miniaturespush card -- remember where we are-- go to the correct path card in the home stackgo card fileType of stack "Home" -- ‚àÜ-- update the "Paths" field with the new pathget bg field "Paths" of card fileTypeif (it ‚↠empty) and (the last char of it ‚↠return)then put return before thePathput thePath after bg field "Paths" of card fileType-- cause the appropriate global variable to be updateddo "put bg field Paths into" && fileTypepop card -- return to where we wereend updateHCPathsfunction stringIsInContainer theString,theContainer--  check to see if theString is a full line of theContainerif (theString = first line of theContainer) or ¬¨(theString = last line of theContainer) then return trueelse if theContainer contains return & theString & return ¬¨then return truereturn false -- not found, so return falseend stringIsInContainerfunction tabToComma theTextrepeat until numToChar(9) is not in theTextput "," into char offset(numToChar(9),theText) of theTextend repeatreturn theTextend tabToCommafunction commaToTab theTextrepeat until "," is not in theTextput numToChar(9) into char offset(",",theText) of theTextend repeatreturn theTextend commaToTabon ChangeStudentDAccessglobal SuperStudentChooser,SuperStudentControl-- this handler requires the following resources:-- DLOG "Find",DITL "Find",XFCN "ModalDialog"if SuperStudentChooser is falsethen put "ON" into line 5 of dialogInputif SuperStudentControl is falsethen put "ON" into line 4 of dialogInputput ModalDialog("find",dialogInput,screenCenter) into dialogOutputif dialogOutput is "Cancel" then exit ChangeStudentDAccessif line 5 of dialogOutput is "ON"thenput false into SuperStudentChooserput SuperStudentChooser into cd field id 273 of cd id 6381elseput true into SuperStudentChooserput SuperStudentChooser into cd field id 273 of cd id 6381end ifif line 4 of dialogOutput is "ON"thenput false into SuperStudentControlput SuperStudentControl into cd field id 274 of cd id 6381elseput true into SuperStudentControlput SuperStudentControl into cd field id 274 of cd id 6381end ifend ChangeStudentDAccesson idleif (there is a bkgnd field id 89) and (the selectedField is empty)then put the Short time into bkgnd field id 89pass idleend idle---------------------------------------------------------------------------   Making IIe Startup Buttons-----------------------------------------------------------------------on AppleIIEglobal fullPathglobal TheName,buttonScripthide msgput "Select the IIe Startup Application:" into fooanswer file foo of type APPLput it into fullPathput LastPathItem(fullpath) into TheNameif TheName ‚↠"IIe Startup"thenanswer "You did not select the IIe Startup Application. Please try again."exit AppleIIEend ifrepeat with i = length of FullPath down to 1if character i of FullPath is ":"thenexit repeatelsedelete character i of FullPathend ifend repeatput return & fullpath after bg field id 6 of card "Applications"put return & theName after bg field id 6 of card "Applications"if fullPath = empty then exit AppleIIEdoMenu "New Button"hide button "New Button"show button "New Button"set style of button "New Button" to transparentset icon of button "New Button" to 22044choose button toolput ((the number of chars of thename) *6) into thewidthselect button "New Button"set rect of button "New Button"  to 122,207,(122 + thewidth + 5),255set autohilite of button "New Button"  to trueset name of button "New Button" to TheNamechoose the browse toolshow bg button id 90put "Drag the new button where you want it and click the DONE Button"-- now construct temporary script for the new buttonput "on mouseStilldown" & return into buttonScriptput "put the name of me into tempname" & return after buttonscriptput "dragon " & tempname & return after buttonScriptput "end mouseStilldown" & return after buttonScriptset script of button TheName to buttonScript-- now construct script for the new buttonput "on mouseUp" & return into buttonScriptput "open" & quote & theName & quote & return after buttonScriptput "end mouseUp" & return after buttonScriptend AppleIIE---------------------------------------------------------------------------   Making IIe ProDos Application Buttons-----------------------------------------------------------------------on PDOSAPPglobal fullPathglobal TheName,buttonScriptif bg field id 6 of card "Applications" contains "IIe Startup"thenelseput "Select the" && quote & "IIe Startup" & quote && "Application:" into fooanswer file foo of type APPLput it into fullpathput LastPathItem(fullpath) into Applif Appl ‚↠"IIe Startup"thenanswer "You did not select the IIe Startup Application. Please try again."exit PDOSAPPend ifrepeat with i = length of FullPath down to 1if character i of FullPath is ":"thenexit repeatelsedelete character i of FullPathend ifend repeatput return & fullpath after bg field id 6 of card "Applications"end ifput "IIe Startup" into Applput "Select a ProDos System Document:" & return & "(Typically having .SYSTEM in the name)" into fooanswer file foo of type PSYSput it into fullpathput FullPath into longnameput LastPathItem(fullpath) into shortnameput ":" into stackmeif fullPath = empty then exit PDOSAPPput LastPathItem(fullpath) into TheNamerepeat with i = length of FullPath down to 1if character i of FullPath is ":"thenexit repeatelsedelete character i of FullPathend ifend repeatput return & fullpath after bg field id 6 of card "Documents"doMenu "New Button"hide button "New Button"show button "New Button"set style of button "New Button" to transparentset icon of button "New Button" to 31320choose button toolput ((the number of chars of thename) *6) into thewidthselect button "New Button"set rect of button "New Button"  to 122,207,(122 + thewidth + 5),255set autohilite of button "New Button"  to trueset name of button "New Button" to TheNamechoose the browse toolshow bg button id 90put "Drag the new button where you want it and click the DONE Button"-- now construct temporary script for the new buttonput "on mouseStilldown" & return into buttonScriptput "put the name of me into tempname" & return after buttonscriptput "dragon " & tempname & return after buttonScriptput "end mouseStilldown" & return after buttonScriptset script of button TheName to buttonScript-- now construct script for the new buttonput "on mouseUp" & return into buttonScriptput "open " & quote & theName & quote && "with" && quote & appl & quote & return after buttonScriptput "end mouseUp" & return after buttonScriptend PDOSAPP</script>
  591. </background>
  592.